home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 2000 …ember: Reference Library / Dev.CD Dec 00 RL Disk 1.toast / pc / technical documentation / develop / develop issue 28 / develop issue 28 code / sketch / source / appleevent / oslclassgraphicobject.h < prev    next >
Encoding:
C/C++ Source or Header  |  1996-08-25  |  1.3 KB  |  40 lines

  1. /****************************************************************************
  2.  * 
  3.  * OSLClassGraphicObject.h
  4.  * 
  5.  * OSL support for the cGraphicObject Apple Event Registry object
  6.  *
  7.  ****************************************************************************/
  8.  
  9.  
  10. #ifndef    __OSLCLASSGRAPHICOBJECT__
  11. #define    __OSLCLASSGRAPHICOBJECT__
  12.  
  13. #include <AppleEvents.h>
  14. #include <AEObjects.h>
  15. #include <AEPackObject.h>
  16.  
  17. // ----------------------------------------------------------------------------
  18.  
  19. OSErr    GraphicObjectEventDispatcher    (AEDesc *token, const AppleEvent *message, AppleEvent *reply, long refcon);
  20.  
  21. OSErr    InstallGraphicObjectAccessors    (void);
  22.  
  23. // ----------------------------------------------------------------------------
  24. // Handles getting property data from ANY graphic object or subclass of cGraphicObject
  25.  
  26. pascal OSErr 
  27. PropertyFromGraphicObjectAccessor( 
  28.                                             DescType        desiredClass,
  29.                                      const AEDesc*        containerToken,
  30.                                              DescType        containerClass,
  31.                                              DescType        keyForm,
  32.                                     const AEDesc*        keyData,
  33.                                              AEDesc*        resultToken,
  34.                                              long             refCon);
  35.  
  36. OSErr    GetDataFromGraphicObject        (AEDesc *tokenOrTokenList, AEDesc *asParameter, AEDesc *data);
  37.  
  38. // ----------------------------------------------------------------------------
  39.  
  40. #endif